Telegram Group & Telegram Channel
Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:
sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес



tg-me.com/pythonturboru/373
Create:
Last Update:

Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:

sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/373

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

If riding a bucking bronco is your idea of fun, you’re going to love what the stock market has in store. Consider this past week’s ride a preview.The week’s action didn’t look like much, if you didn’t know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Python Turbo Уютное сообщество Python разработчиков from tr


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA